<template>
	<view class="bg-white">
		<MyTopNav></MyTopNav>
		<el-row  type="flex" justify="center" class="margin-bottom-xl">
			<el-col :span="12">
				<view class="text-center margin-top">
					<text class="text-xxl text-bold">{{detail.articleTitle}}</text>
				</view>
				<u-parse :content="detail.articleDetail"></u-parse>
			</el-col>
		</el-row>
		<MyFooter></MyFooter>
	</view>
</template>

<script>
	import { articleDetail } from '@/api/cms.js'
	export default {
		data() {
			return {
				id: 0,
				detail: {},
			}
		},
		onLoad(options) {
			this.id = options.id;
			this.getArticleDetail();
		},
		onShow() {
			
		},
		methods: {
			getArticleDetail() {
				articleDetail({
					articleId: this.id
				}).then(res => {
					this.detail = res.data;
					uni.setNavigationBarTitle({
						title: res.data.articleTitle
					})
				})
			}
		}
	}
</script>

<style>

</style>
